import { BasicColumn, FormSchema } from '/@/components/Table';

export const useUserAddSchemaForm = (): FormSchema[] => {
  return [
    { field: 'deptId', label: '', component: 'Input' },
    { field: 'username', label: '', component: 'Input' },
    { field: 'nickname', label: '', component: 'Input' },
    { field: 'email', label: '', component: 'Input' },
    { field: 'phoneNumber', label: '', component: 'Input' },
    { field: 'sex', label: '', component: 'Input' },
    { field: 'avatar', label: '', component: 'Input' },
    { field: 'password', label: '', component: 'Input' },
    { field: 'status', label: '', component: 'Input' },
    { field: 'roleId', label: '', component: 'Input' },
    { field: 'postId', label: '', component: 'Input' },
    { field: 'remark', label: '', component: 'Input' },
  ];
};

export const useUserListColumns = (): BasicColumn[] => {
  return [
    { title: '用户ID', dataIndex: 'userId' },
    { title: '职位ID', dataIndex: 'postId' },
    { title: '职位名称', dataIndex: 'postName' },
    { title: '角色ID', dataIndex: 'roleId' },
    { title: '角色名称', dataIndex: 'roleName' },
    { title: '部门ID', dataIndex: 'deptId' },
    { title: '部门名称', dataIndex: 'deptName' },
    { title: '用户名', dataIndex: 'username' },
    { title: '用户昵称', dataIndex: 'nickname' },
    { title: '用户类型', dataIndex: 'userType' },
    { title: '邮件', dataIndex: 'email' },
    { title: '号码', dataIndex: 'phoneNumber' },
    { title: '性别', dataIndex: 'sex' },
    { title: '用户头像', dataIndex: 'avatar' },
  ];
};
